package com.mi.work2;

public class Person1 {
    private Test01 test1;
    private Test02 test2;

    public Person1() {
    }

    public Test01 getTest1() {
        return test1;
    }

    public void setTest1(Test01 test1) {
        this.test1 = test1;
    }

    public Test02 getTest2() {
        return test2;
    }

    public void setTest2(Test02 test2) {
        this.test2 = test2;
    }

    @Override
    public String toString() {
        return "Person{" +
                "test1=" + test1 +
                ", test2=" + test2 +
                '}';
    }

    public Person1(Test01 test1, Test02 test2) {
        this.test1 = test1;
        this.test2 = test2;
    }
}
